package example.factory.abstr;

public class TestAbstract {

    public static void main(String[] args) {
        DefaultFactory defaultFactory = new DefaultFactory();
        defaultFactory.getCar().getName();
        defaultFactory.getCar("bmw").getName();
    }
}
